Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git: split export_some_refs() to smaller functions #2207

Merged
merged 6 commits into from
Sep 5, 2023

Conversation

yuja
Copy link
Collaborator

@yuja yuja commented Sep 5, 2023

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

yuja added 6 commits September 5, 2023 19:38
…name

Since we've checked the ref doesn't exist in this code path, I think it's
better to not overwrite the existing ref.
export_some_refs() is big, let's split it to functions of reasonable size.
old/new_branch sounds like a branch name, but it's a RefTarget. And
jj_known_refs_passing_filter may contain "new" ref names.
lib/src/git.rs Show resolved Hide resolved
@yuja yuja merged commit 8f4512b into jj-vcs:main Sep 5, 2023
15 checks passed
@yuja yuja deleted the push-uwumptknxums branch September 5, 2023 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants